package com.example.novelstory.dao.lxy;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.novelstory.entity.BookShelf;
import java.util.List;
import org.apache.ibatis.annotations.*;

//书架
@Mapper
public interface BookShelfDao extends BaseMapper<BookShelf> {
//    //用户端查看小说，删除小说，增加小说。
//    @Select("select * from bookshelf")
//    public List<BookShelf> UserBook();
//    //加入书架
//    @Insert("insert into bookshelf(author_id,title) values(#{author_id,jdbcType=VARCHAR},#{title,jdbcType=VARCHAR})")
//    public int bookinsert(@Param("author_id")int author_id,@Param("title")String title);
//    //删除
//    @Delete("delete from bookshelf where title=#{title}")
//    public int bookdelete(String title);
}
